package com.example.designpatterns.decorator;

/**
 * 加鸡蛋的装饰器
 */
public class EggBattercake extends BattercakeDecorator {

    public EggBattercake(Battercake battercake) {
        super(battercake);
    }

    @Override
    public String getMsg() {
        return super.getMsg() + "+1个鸡蛋";
    }

    @Override
    public int getPrice() {
        return super.getPrice() + 2;
    }
}
